<?php
	require '../utils/conn.php';
	include_once '../models/recommand.php';
	
	$content = $_REQUEST['content'];
	$topicId = $_REQUEST['topicId'];
	$title = $_REQUEST['title'];
	$timestamp = time();
	
	$query = "UPDATE t_topic SET t_content='$content', t_timestamp='$timestamp', t_title='$title' WHERE t_id=".$topicId;
	$result = mysql_query($query) or die("update failed：". mysql_error());
	
?>